Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use correct key for setting main build context #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Sep 11, 2024

The signer implementation was not using standard docker keys for setting the main build context, this made it so you can't use signers as standalone frontends executing by docker build.

This is a breaking change as anything implementing a signer will need to be updated to use the correct key.

The main change here is contextKey = "contextkey" instead of contextKey = "context".
You can see this in the dockerui package in buildkit: https://github.com/moby/buildkit/blob/d8d946b85c52095d34a52ce210960832f4e06775/frontend/dockerui/context.go#L29

Other changes are just propagating progress groups around so signing is a little easier to track the status of in the build logs and then tests to ensure that the main context is indeed being set as expected.

@cpuguy83 cpuguy83 added this to the v0.9.0 milestone Sep 11, 2024
@cpuguy83 cpuguy83 requested a review from a team as a code owner September 11, 2024 21:32
@cpuguy83 cpuguy83 force-pushed the signer_context_key branch 4 times, most recently from 3b1ce31 to f8ca4ac Compare September 11, 2024 22:28
@cpuguy83 cpuguy83 force-pushed the signer_context_key branch 2 times, most recently from b96ab5a to 8d4f276 Compare September 30, 2024 18:49
The signer implementation was not using standard docker keys for setting
the main build context, this made it so you can't use signers as
standalone frontends executing by `docker build`.

This is a breaking change as anything implementing a signer will need to
be updated to use the correct key.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 modified the milestones: v0.9.0, vNext, v0.10.0 Oct 7, 2024
@cpuguy83 cpuguy83 modified the milestones: v0.10.0, v0.11.0 Oct 30, 2024
@pmengelbert
Copy link
Contributor

Needs a rebase, and there are conflicts. Otherwise LGTM, I'll repove once everything's green after the rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants